package com.vue.test;

import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * Created by Administrator on 2019/3/7.
 */
public class HelloA {
    public HelloA() {
        System.out.println("HelloA");
    }
    {
        System.out.println("I am A class");
    }
    static {
        System.out.println("static A");
    }
}

class HelloB extends HelloA{
    public HelloB() {
        System.out.println("HelloB");
    }
    {
        System.out.println("I am B class");
    }
    static {
        System.out.println("static B");
    }

    public static void main(String[] args) {
        try {
//            new HelloB();
//            new HelloB();
            throw new IOException();
        } catch (FileNotFoundException e) {
            System.out.println("FileNotFoundException");
        } catch (IOException e) {
            System.out.println("IOException");
        } catch (Exception e) {
            System.out.println("Exception");
        }

    }


}
